#ifndef MYTIME_H
#define MYTIME_H
#include<iostream>

class Time
{
private:
	int hours, minutes;
public:
	Time();
	Time(int h, int m = 0);
	void AddMin(int m);
	void AddH(int h);
	void Reset(int h = 0, int m = 0);
	Time operator+(const Time& t)const;
	Time operator-(const Time& t)const;
	Time operator*(double n)const;
	friend Time operator*(double m, const Time& t) { return t * m; }
	friend std::ostream& operator<<(std::ostream& os, const Time& t);
};

#endif